package com.atguigu.spzx.pay;

import com.atguigu.anno.EnableGetCurrentUserAuthCheck;
import com.atguigu.anno.EnableGlobalExceptionHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.atguigu.spzx.pay.mapper")
@EnableGetCurrentUserAuthCheck
@EnableGlobalExceptionHandler
@EnableFeignClients(basePackages = {"com.atguigu.order.feign","com.atguigu.product.feign"})
public class PayApplication {
    public static void main(String[] args) {
        SpringApplication.run(PayApplication.class, args);
    }
}
